home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / pc / ps40sdk / examples / export / history / common / history.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-30  |  1.6 KB  |  65 lines

  1. /*
  2.     File: History.h
  3.  
  4.     Copyright (c) 1994-6, Adobe Systems Incorporated.
  5.     All rights reserved.
  6.  
  7.     Utilities for History example export module.
  8. */
  9.  
  10. #ifndef __History_H__
  11. #define __History_H__
  12.  
  13. #include "PIExport.h"
  14. #include "PIUtilities.h"
  15.  
  16. /*****************************************************************************/
  17.  
  18. #define trimFirst        3
  19. #define trimLast        trimFirst+1
  20. #define upButton        5
  21. #define downButton        upButton+1
  22. #define statusText        7
  23.  
  24. #define histTotal        7
  25. #define histItem1        statusText+1
  26. #define histItemEnd        histItem1 + histTotal
  27.  
  28. #define histResource    'hist'
  29.  
  30. #define kNoHistories    ResourceID+100
  31. #define kHistStatus        kNoHistories+1
  32.  
  33. /*****************************************************************************/
  34.  
  35. extern Handle hDllInstance;
  36.  
  37. typedef struct Globals
  38.     {
  39.  
  40.     short result;
  41.     short currentHistory;
  42.     Boolean    queryForParameters;
  43.     ExportRecord *exportParamBlock;
  44.  
  45.     } Globals, *GPtr, **GHdl;
  46.         
  47. /*****************************************************************************/
  48.  
  49. #define gResult                 (globals->result)
  50. #define gStuff                  (globals->exportParamBlock)
  51. #define gQueryForParameters        (globals->queryForParameters)
  52. #define gCurrentHistory            (globals->currentHistory)
  53.  
  54. /*****************************************************************************/
  55.  
  56. Boolean    ReadScriptParams (GPtr globals);
  57. OSErr    WriteScriptParams (GPtr globals);
  58.  
  59. void GetHistory (GPtr globals, int16 index, Str255 string);
  60. void DoAbout (GPtr globals);
  61. short DoParameters (GPtr globals);
  62.  
  63. /*****************************************************************************/
  64.  
  65. #endif /* __History_H__ */